package br.com.linkin.mi.utils.xml;

/**
 *
 * @author daniel.mendonca
 */
public class Envelope {

    public static String message(String cabecMsg, String dadosMsg) {
        StringBuilder xml = new StringBuilder();
        xml.append("<soap12:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:soap12=\"http://www.w3.org/2003/05/soap-envelope\">")
           .append("<soap12:Header>")
           .append(cabecMsg)
           .append("</soap12:Header>")
           .append("<soap12:Body>")
           .append(dadosMsg)
           .append("</soap12:Body>")
           .append("</soap12:Envelope>");
        return xml.toString();
    }
}
